document.querySelector('.search-bar input').addEventListener('keypress', function(e) {
    if (e.key === 'Enter') {
        let query = e.target.value;
        window.location.href = `/search?query=${query}`;
    }
});
